import request from './request'
//获取首页数据
export const GetHomeData = () => request.get('/index/index')
//获取搜索数据
export const GetSearchData = () => request.get('/search/index')
//获取商品搜索的数据
export const GetProdData = (params) => request.get('/goods/list',{params})
//实时搜索获取商品列表
export const GetProdList = (params) => request.get('/search/helper',{params})
//删除历史记录
export const ClearHistory = () => request.post('/search/clearhistory')
//登录
export const Login = (params) => request.post('/auth/loginByWeb',params)
//获取商品明细
export const getDetal = (params) => request.get('/goods/detail',{params})
// 相关产品
export const getAboutProds = (params) => request.get('/goods/related',{params})
//获取购物车的数量
export const getCartnNum = () => request.get('/cart/goodscount')
//加入购物车
export const AddCar = (params) => request.post('/cart/add',params)
//购物车数组
export const GetCartList = () => request.get('/cart/index')
//点击切换商品选中状态
export const GetCheckedData = (params) => request.post('/cart/checked',params)
//商品步进器
export const GoodStepNum = (params) => request.post('/cart/update',params)
//删除商品
export const DeleteGood = (params) => request.post('/cart/delete',params)
//专题
export const GetTopicList = (params) => request.get('/topic/list',{params})
//全部分类数据
export const GetCataLog = (params) => request.get('/catalog/index')
//分类数据获取
export const Getcategory = (params) => request.get('/goods/category',{params})
//获取类别
export const GetList = (params) => request.get('/goods/list',{params})







